import os

ENV = 'development'
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'mysql+mysqlconnector://root:123789@www.wangkongrong.club/LSHW'
SQLALCHEMY_TRACK_MODIFICATIONS = False

SECRET_KEY = 'weij%23SIEsd3feOIJ72#@4$t%JiojFk!!'
BABEL_DEFAULT_LOCALE = 'zh_CN'

#
# 配置redis
REDIS_CONFIG = {
    'CACHE_TYPE': 'redis',
    'CACHE_REDIS_HOST': '127.0.0.1',
    'CACHE_REDIS_PORT': 6379,
    # 'CACHE_REDIS_DB': '',
    # 'CACHE_REDIS_PASSWORD': 123789
}

# 全文检索
# WHOOSH_BASE = os.path.join()
# WHOOSH_BASE = os.path.join(basedir, 'search.db')
MSEARCH_INDEX_NAME = 'whoosh_index'
MSEARCH_BACKEND = 'whoosh'
MSEARCH_ENABLE = True
